<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 将89小时，转换成x天零y小时
        var hours=89
        var dayh,h
        dayh=24
        // h=hours%dayh;console.log(h)
        var day
        day=(hours-h)/dayh
        // console.log(day)
        var time=day+'天'+h+'小时'
        // console.log(time)
    </script>
    <script>
        // 玫瑰班有56名小朋友，开学大扫除，有23名小朋友参与。向日葵班有41人，请问应出多少人，才能和玫瑰班的比例大致相同（忽略小数点）
        var num=56
        var rn=23
        var xnum=41
        var pro=rn/num
        var xpro=41*pro
        console.log(xpro)
    </script>
</body>
</html>